From 4e6be66bd31915fb1c0deb759be6e1837083f9b4 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 13 Apr 2008 20:59:45 +0000 Subject: [PATCH] pdbfile: Avoid errors and warnings when changing gbsize_t to a 64-bit type. --- gpsbabel/pdbfile.c | 4 ++-- gpsbabel/pdbfile.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gpsbabel/pdbfile.c b/gpsbabel/pdbfile.c index bade3d567..3d53c7bea 100644 --- a/gpsbabel/pdbfile.c +++ b/gpsbabel/pdbfile.c @@ -50,7 +50,7 @@ pdb_invalid_file(const pdbfile *pdb_in, const char *fmt, ...) /* try to read to EOF (avoid determining file-size) */ static void * -pdb_read_tail(gbfile *fin, gbint32 *size) +pdb_read_tail(gbfile *fin, gbuint32 *size) { int count; char buff[256]; @@ -176,7 +176,7 @@ pdb_load_data(pdbfile *fin) offs += fin->appinfo_len; } else { - gbint32 size; + gbuint32 size; fin->appinfo = pdb_read_tail(fin->file, &size); fin->appinfo_len = size; offs += size; diff --git a/gpsbabel/pdbfile.h b/gpsbabel/pdbfile.h index 0ad8237cd..4bef52211 100644 --- a/gpsbabel/pdbfile.h +++ b/gpsbabel/pdbfile.h @@ -39,8 +39,8 @@ #define EPOCH_1904 2082844800L typedef struct pdbrec_s { - gbint32 offs; - gbint32 size; + gbuint32 offs; + gbuint32 size; gbuint32 id; gbuint8 category; gbuint8 flags; -- 2.30.2